Apply variant 4 mitigation for Neoverse N1
authorJohn Tsichritzis <[email protected]>
Mon, 4 Mar 2019 16:41:26 +0000 (16:41 +0000)
committerJohn Tsichritzis <[email protected]>
Thu, 14 Mar 2019 11:31:43 +0000 (11:31 +0000)
commit8074448f096615a94d7bb54aa70a7dbfa6053ab4
tree50f24e0524699e730ce6a76408624e1cb5c5c579
parent620d9832f96ffcaf86d38b703ca913438d6eea7c
Apply variant 4 mitigation for Neoverse N1

This patch applies the new MSR instruction to directly set the
PSTATE.SSBS bit which controls speculative loads. This new instruction
is available at Neoverse N1 core so it's utilised.

Change-Id: Iee18a8b042c90fdb72d2b98f364dcfbb17510728
Signed-off-by: John Tsichritzis <[email protected]>
include/arch/aarch64/arch.h
lib/cpus/aarch64/neoverse_n1.S